<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <HTML>
     <HEAD>
         <TITLE>Index testing JRE level</TITLE>
     </HEAD>
 <BODY>
[1]<SCRIPT LANGUAGE="JavaScript">
 var javawsInstalled = 0;
 var javaws12Installed = 0;
 var javaws142Installed=0;
 isIE = "false";
 if (navigator.mimeTypes && navigator.mimeTypes.length) {
    x = navigator.mimeTypes['application/x-java-jnlp-file'];
    if (x) {
       javawsInstalled = 1;
       javaws12Installed=1;
       javaws142Installed=1;
    }
 }
 else {
    isIE = "true";
 }
 </SCRIPT>
[2]<SCRIPT LANGUAGE="VBScript">
 on error resume next
 If isIE = "true" Then
   If Not(IsObject(CreateObject("JavaWebStart.isInstalled"))) Then
      javawsInstalled = 0
   Else
      javawsInstalled = 1
   End If
   If Not(IsObject(CreateObject("JavaWebStart.isInstalled.2"))) Then
      javaws12Installed = 0
   Else
      javaws12Installed = 1
   End If
   If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.4.2.0"))) Then
      javaws142Installed = 0
   Else
      javaws142Installed = 1
   End If
 End If
 </SCRIPT>
[3]<SCRIPT LANGUAGE="JavaScript">
 if (javawsInstalled || (navigator.userAgent.indexOf("Gecko") !=-1)) {
     document.write("<a href=HelloWorld.jnlp>Press 
          here to launch Hello World using JWS</a>");
 } else {
     document.write("WebStart is not Installed, Click ");
     document.write("<a href=http://java.sun.com/j2se/1.4.2/download.html>here</a> ");
     document.write("to download and install JRE 1.4.2 and try to run the app again.");
 }
 </SCRIPT>
 </BODY>
 </HTML>